package com.hihonor.game.service.impl;

import com.hihonor.game.document.Employee;
import com.hihonor.game.repository.EmployeeRepository;
import com.hihonor.game.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @fileName: EmployeeServiceImpl
 * @author: LmR
 * @createDate: 2023/12/9 22:24
 * @Desc:
 */
@Service
public class EmployeeServiceImpl implements EmployeeService {

    @Autowired
    private EmployeeRepository employeeRepository;

    @Override
    public void save(Employee employee) {
        Employee save = employeeRepository.save(employee);
        System.out.println(save.toString());
    }
}
